cmake_minimum_required(VERSION 3.0)


#
set(ALL_TEST_LIB)
macro(ADD_TEST_LIB DIR)
    include_directories(${DIR})
    add_subdirectory(${DIR} test)
    list(APPEND ALL_TEST_LIB ${ARGN})
endmacro()


## 利用次语句添加你的c++测试代码目录,
ADD_TEST_LIB(src/main/cpp/demo demo)

add_library(testsuit_jni SHARED
 src/main/cpp/testsuit_jni.cpp
 src/main/cpp/testsuit_framework.cpp
 )

 target_link_libraries(testsuit_jni ${ALL_TEST_LIB})

